-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Provide rules to migrate EXT:vhs viewhelpers #3424
Conversation
864c0cd
to
cb94277
Compare
Nice draft, a note though: |
@kitzberger Nice. What we will also need are tests. Could you provide them? |
@sabbelasichon, like this? Any suggestions? I know, one is failing. I need to figure out how to migrate single viewhelper properties. |
@helsner, good point. Is there a way of migrating the code and print some warning in such a case? Or is that counter-productive since nobody every reads them anyways? |
I would say there is no proper way of migration as the logic behind the var cannot be further checked (especially in HTML). |
Do you know of any examples where a warning is being output? Thanks for your input :-) |
simply look for |
@helsner, thanks for the hint! I've now added a more strict pattern to detect the simple cases like: What do you think? |
@kitzberger nice, but i would point out to why the change is not made as well, as this might not be known (i found that out the hard way 😂 ) |
This still looks great, but i just checked and noticed that we have some TODO's left |
Nice PR, do you know when it'll be ready to merge? Thanks, |
* Only migrate the simple cases by the 'strict' pattern * Print warning about left over cases
1d5230b
to
ca8f57c
Compare
@helsner What kind of TODO´s are left here? |
Those marked in the code I guess |
@helsner If you like you can merge it. I am not using VHS anyways ;-) |
@kitzberger what about you Philipp? |
* [FEATURE] Provide rule to migrate v:format.json.encode * [FEATURE] Provide rule to migrate v:l * [FEATURE] Provide rule to migrate v:variable.set * [FEATURE] Provide rules to migrate v:uri.image and v:media.image * [FEATURE] Provide rules to migrate v:or * Added unit tests for vhs migrations * Tweak replace v:varible.set * Only migrate the simple cases by the 'strict' pattern * Print warning about left over cases * [FEATURE] Provide rule to migrate v:extension.path.relative
t.b.c.